package com.wshare.websocket;

import java.io.IOException;

import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import javax.websocket.server.ServerEndpoint;

@ServerEndpoint("/ws/basic")
public class BacsicWebSocket {
	
	@OnMessage
	public void handleOnMsg(String msg,Session session) throws IOException{
		session.getBasicRemote().sendText("hello, "+msg);
	}
	
	@OnOpen
	public void handleOnOpen(Session session){
	}
}
